package me.sealer.ssm.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.util.List;

/**
 * @author sealer
 */
@Builder
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode
@ApiModel(value = "菜单")
public class Menu {
    @ApiModelProperty(value = "菜单id")
    private Integer id;

    @ApiModelProperty(value = "父菜单id")
    private Integer parentMenuId;

    @ApiModelProperty(value = "菜单名字")
    private String name;

    @ApiModelProperty(value = "菜单图标样式")
    private String icon;

    @ApiModelProperty(value = "菜单别名")
    private String alias;

    @ApiModelProperty(value = "菜单状态")
    private String state = "ENABLE";

    @ApiModelProperty(value = "菜单分类")
    private Integer sort;

    @ApiModelProperty(value = "菜单值")
    private String value = "";

    @ApiModelProperty(value = "菜单类型")
    private String type;

    @ApiModelProperty(value = "菜单描述")
    private String description;

    @ApiModelProperty(value = "子菜单列表")
    private List<Menu> children;
}